package com.wu.ssm.study.ioc;

/**
 * Created by wzf on 2018/11/7/007.
 */
public class Main {


    public static void main(String[] args) {


        MyApplicationContext applicationContext = new MyApplicationContext();
        System.out.println(applicationContext.getBean("user").toString());
        System.out.println(((User)applicationContext.getBean("user")).getDept() == applicationContext.getBean("dept"));

        System.out.println(applicationContext.getBean("dept").toString());
    }

}
